#!/bin/sh
yes | cp instance/file_sender/router_policy.cfg.sm2sm4 instance/file_sender/router_policy.cfg 
rm -f instance/file_sender/aspect_policy.cfg 
yes | cp instance/file_receiver/router_policy.cfg.sm2sm4 instance/file_receiver/router_policy.cfg 
rm -f instance/file_receiver/aspect_policy.cfg 
yes | cp instance/file_transfer/router_policy.cfg.sm2sm4 instance/file_transfer/router_policy.cfg
rm -f instance/file_transfer/aspect_policy.cfg 

killall envset_proc
sleep 1

#sh run_cube.sh exec_def/question2/_receiver_sm2sm4.def &
sh run_cube.sh exec_def/question2/_file_receiver.def &
sh run_cube.sh exec_def/question2/_file_transfer.def &
#sh run_cube.sh exec_def/question2/_sender_sm2sm4.def &
sh run_cube.sh exec_def/question2/_file_sender.def base_msg.msg filesend.msg
